
/**
 * AppleIIGo
 * Saturn RAM Board class
 * (C) 2007-2008 by Marc S. Ressl (mressl@umich.edu)
 * Released under the GPL
 */

#ifndef SATURNRAMBOARD_H
#define SATURNRAMBOARD_H

#define SATURNRAMBOARD_BYTENUM 0x20000
#define SATURNRAMBOARD_BANK_BYTENUM 0x4000

#include "LanguageCard.h"

class SaturnRAMBoard : public LanguageCard {
public:
	SaturnRAMBoard(class Motherboard * motherboard, char * slotDeviceName);
	
	void onResetAsserted(bool isRestart);
	
	void writeIo(UINT16 address, UINT8 value); 
	UINT8 readIo(UINT16 address);
	
private:
	UINT32 bankSelect;
	
	void setMemoryOffset();
};

#endif
